import * as api from '../axios';

export default {
  //首页-顶部统计
  getGrossVolume: (params) => {
    return api.axiosGetAPI('/manage/home/charts/gross-volume', params);
  },

  // 首页-收益
  getOrderRevenue: (params) => {
    return api.axiosGetAPI('/manage/home/charts/revenue', params);
  },

  // 首页-净利润
  getProfit: (params) => {
    return api.axiosGetAPI('/manage/home/charts/profit', params);
  },

  // 首页-订单统计-租借订单
  getNewOrderNum: (params) => {
    return api.axiosGetAPI('/manage/home/charts/order-rental', params);
  },

  // 首页-租借订单状态
  getOrderStatus: (params) => {
    return api.axiosGetAPI('/manage/home/charts/order-rental-status', params);
  },

  // 首页-租借高峰期统计
  getFastigium: (params) => {
    return api.axiosGetAPI('/manage/home/order-rental/peak-count', params);
  },

  // 首页-用户访客数
  getVisitor: (params) => {
    return api.axiosGetAPI('/manage/home/user-visitor', params);
  },

  // 首页-设备状态概览
  getDeviceStatusOverview: (params) => {
    return api.axiosGetAPI('/manage/home/charts/device', params);
  },

  // 首页-充电宝健康状态
  getDevicePowerBankCharges: (params) => {
    return api.axiosGetAPI('/manage/home/power-bank/charge-count', params);
  },

  // 首页-网点数统计
  getMerchantNum: (params) => {
    return api.axiosGetAPI('/manage/home/branch/count', params);
  },

  // 首页-代理数统计
  getAgentNum: (params) => {
    return api.axiosGetAPI('/manage/home/agent/count', params);
  },


  // 首页-订单列表
  getOrderList: (params) => {
    return api.axiosGetAPI('/manage/home/orders', params);
  },


}